
#include "common.h"
/**
 * get mat(one dimension vector) value
 * @param mat one dimension vector
 * @param rows mat rows
 * @param cols mat cols
 * @param row row position
 * @param col col position
 * @return
 */
uchar visitOneDimVectorMat(vector<uchar> &mat, int rows, int cols, int row, int col) {
    assert(row < rows);
    assert(col < cols);
    return mat[row * cols + col];
}
